﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CCWin;
namespace UI.jixiaoguanli
{
    public partial class jixiaoguanli : Form
    {
        public jixiaoguanli()
        {
            InitializeComponent();
        }

        private void jixiaoguanli_Load(object sender, EventArgs e)
        {
            skinDataGridView1.DataSource = DAL.UserServer.Selectjxcx().Tables[0];
        }

        private void skinButton1_Click(object sender, EventArgs e)
        {
            if (skinTextBox1.Text == "" || skinTextBox1.Text == null)
            {
                MessageBox.Show("您什么都没输入！");
                return;
            }
            if (UI.Global.isNumber(skinTextBox1.Text) == false)
            {
                MessageBox.Show("您没有输入数字！");
                return;
            }
           int uid = Convert.ToInt32(skinTextBox1.Text);
            Model.UserInfo uinfo=new Model.UserInfo();
            uinfo.Uid=uid;
            skinDataGridView1.DataSource= DAL.UserServer.Selectjxdc(uinfo).Tables[0];

        }

        private void skinButton2_Click(object sender, EventArgs e)
        {
            skinDataGridView1.DataSource = DAL.UserServer.Selectjxcx().Tables[0];
        }
    }
}
